import React from 'react'
// ===================================================================== Temp
import FormModal from '#cpt/temp/FormModal'
// ===================================================================== component
class Index extends React.Component{
	state = {
		// 提交表单列表
		formData : [
			{ label: '原条码',     name: 'old_spec_code', 	full:true,	disabled:true },
			{ label: '新条码',     name: 'spec_code', 		full:true,	required:true }
		]
	}
	submit = {}

	open = ({ id, spec_code })=> {
		this.formRef.setValue({old_spec_code:spec_code})
		this.submit.id = id
		this.modal.open({formRef: this.formRef})
	}
	

	
	render(){
		return FormModal.call(this,{title:'修改条码', labelWidth:'s5', width:700, api:'internet-gather/edit', onRefresh:()=> this.props.onRefresh() })
	}
}

export default Index